package com.guoxin.chapter3.join.joinmoretest;

/**
 * @author guoxin
 * @date 2019年8月23日
 */
public class ThreadB extends Thread {
	@Override
	public synchronized void run() {
		try {
			System.out.println(
					"begin B ThreadName=" + Thread.currentThread().getName() + " " + System.currentTimeMillis());
			Thread.sleep(5000);
			System.out
					.println("end A ThreadName=" + Thread.currentThread().getName() + " " + System.currentTimeMillis());
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
}
